package icegps.com.bhmap.evaluator;

import android.animation.TypeEvaluator;
import android.graphics.PointF;

/**
 * Created by 111 on 2017/12/8.
 */

public class TanslateEvaluator implements TypeEvaluator<PointF> {

    @Override
    public PointF evaluate(float fraction, PointF startValue, PointF endValue) {

        float currentX = startValue.x + fraction * (endValue.x - startValue.x);

        float currentY = startValue.y + fraction * (endValue.y - startValue.y);

        PointF pointF=new PointF(currentX,currentY);
        return pointF;
    }


}
